package fauxman.DynamicElements;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;

import fauxman.Enums.GameElementName;
import fauxman.interfaces.DynamicElement;

public class Pellet extends DynamicElement{
	private int width;
	private int height;

	public Pellet(int conX, int conY, int disX, int disY, int width, int height){
		this.conX = conX;
		this.conY = conY;
		this.disX = disX;
		this.disY = disY;
		this.width = width;
		this.height = height;
		this.conHitbox = new Rectangle(conX+(width/3), conY+(height/3), width/3, height/3);
		// TODO: This integer math may not be suitable 
		this.gNum = GameElementName.PELLET;
	}

	public void draw(Graphics g) {
		g.setColor(Color.WHITE);
		g.fillOval(conX, conY, width,height);
	}
	
	public String toString(){
		return "pT";
	}
}
